The listing 8 code uses a pair of mutually recursive methods for the actual analysis 清單8中的代碼使用兩個(gè)相互遞推的方法進(jìn)行實(shí)際的分析。
In particular, it cannot match mutually recursive methods, where each method calls the other 特別是,它不能匹配相互遞歸調(diào)用的方法,也就是每個(gè)方法都調(diào)用其他的方法。
You might enjoy the exercise of figuring out how to adjust the grammar hint : remember that productions are allowed to be mutually recursive 您可能會(huì)喜歡弄清如何調(diào)整語(yǔ)法的練習(xí)(提示:請(qǐng)記住允許各產(chǎn)品彼此遞歸)。
The tree-based approach used for jibx code generation ends up constructing methods in this depth-first order anyway, so the duplicate checks work as long as there are no cycles in the method call graphs mutually recursive methods jibx代碼生成所使用的基于樹(shù)的方法總能按照深度優(yōu)先順序構(gòu)造方法;如果在方法調(diào)用圖中沒(méi)有循環(huán)(方法的相互調(diào)用),重復(fù)檢查是有效的。